/*
 * @Description: 测试
 * @Author: chenjiaxin
 * @Date: 2022-02-02 15:12:48
 * @LastEditTime: 2022-02-20 11:10:00
 * @FilePath: \super-unit\test\test.js
 */

// import { dateToString } from "../index.js"
// let { dateToString } = require("../index.js");
// let superUnit = require("../index.js");
// console.log(superUnit.dateToString(new Date, "YYYY/MM/DD hh:mm:ss"));

// console.log(superUnit.spaceTime("2022-02-02 22:23:45"));

let { cloneDeep, cloneDeepObj } = require("../lib/utils/index");
let sy1 = Symbol("aa");
let sy2 = Symbol("bb");
let obj = {
  nu: null,
  undef: undefined,
  b: true,
  name: "cjx",
  age: 18,
  user: {
    address: "深圳"
  },
  friends: ["json", "java"],
  [sy1]: "aa",
  sy2: sy2
};
obj.info = obj;

// let newObj = cloneDeepObj(obj);
let newObj = cloneDeep(obj);

newObj.name = "coder";
newObj.user.address = "北京";

console.log(obj);
console.log(newObj);
console.log(newObj.friends[1]);
